package com.fuli.app.service;

import com.fuli.app.common.ActionResult;
import com.fuli.app.common.Pagination;
import com.fuli.app.dto.ImageDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ImageService {
    ActionResult<ImageDTO> upload(MultipartFile file, String description, String classId);

    ActionResult<String> delete(String id);

    ActionResult<ImageDTO> get(String id);

    ActionResult<List<ImageDTO>> getByClassId(String id);

    ActionResult<Pagination<ImageDTO>> pageQuery(String classId, Integer pageNo, Integer pageSize);
}
